<?php

  require_once "JooS/Server/Resource/DataAttr.php";
  require_once "JooS/Server/Resource/DataAttr/Iterator.php";

  class JooS_Server_Resource_DataAttr_List extends ArrayObject {
    public function __construct() {
      parent::__construct(array(), 0, "JooS_Server_Resource_DataAttr_Iterator");
    }

    public function offsetGet($offset) {
      return parent::offsetGet($offset)->nodeValue;
    }

    public function offsetSet($offset, $value) {
      parent::offsetSet($offset, new JooS_Server_Resource_DataAttr($offset, $value));
    }
  }

?>